home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 32
/
CD Expert nº 32.iso
/
Emergency
/
emergyus.exe
/
BC5
/
EXAMPLES
/
SERIES
/
GDIDIB
/
readme.txt
Wrap
Text File
|
1997-03-25
|
3KB
|
60 lines
GDIDIB - Based on GDIPal
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (C) 1993 - 1995 Microsoft Corporation. All Rights Reserved.
PURPOSE:
Demonstrates the CreateDIBSection API.
USES:
Bitmap creation, editing, storage and retrieval.
COMMENTS:
This is a 32-bit only sample.
Note that the dialog for selecting pen and brush colors will allow
the selection of colors not contained in the color table of the
DIBSection bitmap when the bitmap is in 1bpp or 4bpp format and the
display device supports more colors than are in the color table.
Objects painted with the pen or brush will initially appear in the
selected color, but when the image is refreshed from the bitmap in the
memory DC, the objects will assume colors in the bitmap's color table
that are mapped from the original colors using the nearest color
algorithm. These are the colors that are actually stored in the bitmap.
MODULE MAP:
Dispatch- Message dispatching routines
WinMain - Calls initialization functions and processes the message loop
GDIDIB - Implements the windows procedure for the main application window
Init - Performs application and instance specific initialization
About - Defines a standard about dialog box.
Misc - Defines the applications specific commands not related to
a specific module.
ToolBar - Creates the toolbar and processes ToolTips notifications.
StatBar - Creates and manages the status bar.
Client - Implements the window procedure for a child window
that displays either an initialized bitmap or one loaded
from disk file, and performs all drawing on the bitmap.
PenDlg - Dialog box for choosing the pen style used for drawing.
BrushDlg- Dialog box for choosing the brush style used for
filling objects.
ColorDlg- Dialog box for choosing a color from the system palette
when running GDIDIB on a palette-based device.
PalCtrl - Implements a custom control for displaying and selecting
colors from the current system palette.
Palette - Implements palette manager-related routines such as
handlers for palette messages.
InfoDlg - Dialog box for displaying some basic color and palette
information regarding the display device.
DIBUtil - Contains various routines for manipulating DIBs.
FileDlg - Implements dialogs for File Save, Save As and Close.
FileIO - Implements code for reading and writing DIB files.
FileNew - Implements code for creating a new DIB.